package cn.tqfeiyang.smartadmin.business.organization.request;

import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.tqfeiyang.smartadmin.commons.pagination.*;
import lombok.Data;

import cn.tqfeiyang.smartadmin.business.organization.response.DepartmentQueryVO;

/**
 * 部门查询请求
 *
 * @author tqfeiyang
 * @since 2024-10-18
 */
@Data
public class DepartmentQueryDTO extends PageParams {

    /**
     * 排序字段
     */
    @Schema(description = "排序字段")
    private DepartmentQueryVO.Fields orderBy = DepartmentQueryVO.Fields.name;

    /**
     * 排序方式 asc：升序，desc：降序
     */
    @Schema(description = "排序方式 asc：升序，desc：降序")
    private OrderDirection direction = OrderDirection.asc;

    /**
     * 关键字
     */
    @Schema(description = "关键字")
    private String keywords;

    /**
     * 上级id
     */
    @Schema(description = "上级id")
    private Long parentId;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;
}